{include file="public/header" /}
<style type="text/css">
    .gray-bg {
        background: #fff;
    }

    .wrapper {
        padding: 0px;
    }

    .asdh5 h5 {
        border-top: 1px dotted #ccc;
        padding-top: 20px;
        margin-top: 20px;
    }

    #hidetent {
        display: none;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类型：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="0" name="burn" checked>正常
                                </label>
                                <label>
                                    <input type="radio" value="1" name="burn">阅后即焚
                                </label>
                                <label>
                                    <input type="radio" value="2" name="burn">红包视频
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group packet" style="display: none">
                        <label class="col-sm-2 control-label">红包金额：</label>
                        <div class="col-sm-9">
                            <input name="packet" type="text" class="form-control" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">封面图：</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <input name="cover" type="text"  id="image" class="form-control" value="">
                                <span class="input-group-btn">
                                    <button type="button" class="btn btn-primary" id="tubiao">上传图片</button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">视频：</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <input name="pic" type="text"  id="videoval" class="form-control" value="">
                                <span class="input-group-btn">
                                    <button type="button" class="btn btn-primary" id="tubiao1">上传视频</button>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        });
        $('input[name=burn]').on('ifChecked', function(obj){
            var burn = $(this).val();
            if (burn == 2) {
                $('.packet').show();
            } else {
                $('.packet').hide();
            }
        })
    });
</script>
{include file="public/bottom" /}